package com.dyh.quickdemozwei.shiyanchang.pipeLine.example;


import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import java.util.function.Function;

@Configuration
public class ExampleFunctions {


    @Bean
    Function<String,String> f1(){
       return e->e+"!";
    }

    @Bean
    Function<String,Integer> strLen(){
        return String::length;
    }

}
